/**
 * Copyright (c) 2015-2030 by Beijing Yanlight Co., Ltd.
 * All rights reserved.
 */
package com.yanlight.app.dal.dao;

import java.util.List;

import com.yanlight.app.dal.dto.CompanyQuery;
import com.yanlight.app.dal.entity.Company;

/**
 * @author haolw
 * @time 2017/07/14
 */
public interface CompanyDAO {

    Company findById(Integer id);

    Company findByPhone(String phone);

    Company findByEmail(String email);

    List<Company> findByName(String name);

    List<Company> findByIds(List<Integer> ids);

    int save(Company company);

    int count(CompanyQuery query);

    List<Company> findList(CompanyQuery query);

    void modifyStatus(Integer id, Integer status);

    void update(Company company);

    void deleteById(Integer id);
}
